package com.weidey.blogWeb.service;

import com.weidey.blogWeb.domain.WebArticle;
import com.weidey.common.core.domain.AjaxResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IWebArticleService {
    List<WebArticle> userCfRecommend(long userId);
    List<WebArticle> selectBlogArticleList();
    List<WebArticle> selectBlogArticleHot();
    List<WebArticle> selectBlogArticleByGroup(int groupId);
    WebArticle selectBlogArticleById(int id);
    AjaxResult beginArticleRate(Long userId, int articleId, int rate);
    int selectRate(int id);
    AjaxResult getMyArticle(Long userId);
    AjaxResult getMyCollectArticle(Long userId);
    AjaxResult getMyLikeArticle(Long userId);
    List<WebArticle>  additional(List<WebArticle> blogWebArticleList);
    void updateViewCount(int articleId);
}
